<script>
export default {
  name: "EqNumRender",
  props: {
    p: {
      type: Object
    }
  }
}
</script>

<template>
  <view v-if="p" class="flex">
    <view v-if="p.attack > 0 || p.attack2 > 0">
      <span style="margin-right: 10px;">攻击强化</span>
      <span>+{{ p.attack.toFixed(1) }}%</span>
    </view>
    <view v-if="p.buffer > 0 || p.buff > 0" class="paddleft">
      <span style="margin-right: 10px;">Buff量</span>
      <span>{{ p.buffer || p.buff }}</span>
    </view>
  </view>
</template>

<style src="../css/eq-info.scss" scoped></style>
